package com.dingpeikeji.quickdeer.modules.messages.entity;

import org.hibernate.validator.constraints.Length;

import com.dingpeikeji.quickdeer.core.common.persistence.DataEntity;

/**
 * 手工发送短信Entity
 * @author 123
 * @version 2017-05-23
 */
public class TmpMessages extends DataEntity<TmpMessages> {
	
	private static final long serialVersionUID = 1L;
	private String messageid;		// 主键
	private String mobile;		// 手机号
	private String content;		// 短信内容
	
	public TmpMessages() {
		super();
	}

	public TmpMessages(String id){
		super(id);
	}

	public String getMessageid() {
		return messageid;
	}

	public void setMessageid(String messageid) {
		this.messageid = messageid;
	}
	
	@Length(min=1, max=20, message="手机号长度必须介于 1 和 20 之间")
	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	
	@Length(min=1, max=200, message="短信内容长度必须介于 1 和 200 之间")
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
}